package com.wwl.springcloud.services;

import com.wwl.springcloud.dto.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/8/10 15:54
 * @description:
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignServices {
    @PostMapping(value = "/payment/find")
    public CommonResult getPaymentById(Map<String,Object> map);

    @GetMapping(value = "/payment/feign/timeout")
    public String paymentFeignTimeout();

}
